COM AT^SPIC - test  Output PIN counter
COM V1.0	30.11.04	T. Kleinmann

from attglobals import *

AT^SPIC=?
WAIT FOR OK

AT^SPIC?
WAIT FOR OK


MESSAGE('Please make sure you have the PIN / PUK For this SIM card available!')
MESSAGE('Mobile will be restarted now!')

#Restart mobile
AT^SMSO=1
WAIT FOR OK

WAIT 20000

AT+CPIN?
WAIT FOR OK

#Enter wrong PIN
AT+CPIN=22222
WAIT FOR ERROR

#Check that number of attempts is decreased
AT^SPIC
WAITFOR (1,'2')

AT^SPIC?
WAITFOR (1,'"SC",2,10')

MESSAGE('Resetting mobile')
AT^SMSO=1

AT
WAIT FOR OK

